package com.boot.web.dao;

import com.boot.web.entity.GoodsOrders;
import com.boot.base.dao.BaseDao;
import com.boot.web.vo.GoodsOrdersVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商品订单数据层接口
 * @author 【zhouJie】
 * @date 2021-09-28 17:52:24
 */
public interface GoodsOrdersDao extends BaseDao<GoodsOrders> {

    List<GoodsOrders> queryGoodsOrdersByUserIdIsBuyBeeAmoy(Integer userId);

    List<GoodsOrdersVO> queryGoodsOrdersVOByStatus(@Param("userId") Integer userId, @Param("status") String status);

    GoodsOrdersVO queryGoodsOrdersVOByTradeNo(String tradeNo);

    GoodsOrders queryByOrderNo(String orderNo);

    List<GoodsOrdersVO> queryGoodsOrdersVOPageList(Map<String, Object> params);

}
